<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>直播 - Web3 AI数字人NFT交互平台</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        body {
            background: #000;
            color: white;
            font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
            height: 100vh;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }
        .live-container {
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
        }
        .video-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        .video-placeholder {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .live-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .live-header {
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        .streamer-info {
            display: flex;
            align-items: center;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 30px;
            padding: 5px 15px 5px 5px;
        }
        .streamer-avatar {
            width: 40px;
            height: 40px;
            border-radius: 20px;
            overflow: hidden;
            margin-right: 10px;
            border: 2px solid #7c3aed;
        }
        .streamer-details {
            display: flex;
            flex-direction: column;
        }
        .streamer-name {
            font-weight: bold;
            font-size: 14px;
        }
        .viewers-count {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
            display: flex;
            align-items: center;
        }
        .live-badge {
            background: linear-gradient(90deg, #ff4d4d, #f9644e);
            color: white;
            font-size: 10px;
            font-weight: bold;
            padding: 2px 8px;
            border-radius: 4px;
            margin-right: 5px;
        }
        .action-buttons {
            display: flex;
        }
        .action-button {
            width: 40px;
            height: 40px;
            border-radius: 20px;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 10px;
        }
        .live-footer {
            padding: 15px;
        }
        .comments-container {
            margin-bottom: 15px;
            max-height: 200px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .comment {
            background: rgba(0, 0, 0, 0.5);
            border-radius: 20px;
            padding: 8px 15px;
            font-size: 12px;
            max-width: 80%;
            align-self: flex-start;
        }
        .comment-user {
            font-weight: bold;
            color: #a78bfa;
            margin-right: 5px;
        }
        .input-container {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 30px;
            padding: 5px 5px 5px 15px;
        }
        .input-field {
            flex: 1;
            background: transparent;
            border: none;
            color: white;
            padding: 8px 0;
            outline: none;
            font-size: 14px;
        }
        .input-field::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }
        .input-actions {
            display: flex;
            align-items: center;
        }
        .input-action {
            width: 36px;
            height: 36px;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            margin-left: 5px;
            background: rgba(124, 58, 237, 0.5);
        }
        .gift-button {
            background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
        }
        .side-buttons {
            position: absolute;
            right: 15px;
            bottom: 100px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            z-index: 3;
        }
        .side-button {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 10px;
        }
        .side-button i {
            font-size: 20px;
            margin-bottom: 2px;
        }
        .like-count {
            font-size: 12px;
            margin-top: 2px;
        }
        .gift-panel {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            padding: 20px 15px;
            z-index: 10;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }
        .gift-panel.active {
            transform: translateY(0);
        }
        .gift-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        .gift-panel-title {
            font-weight: bold;
            font-size: 16px;
        }
        .gift-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }
        .gift-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }
        .gift-icon {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }
        .gift-name {
            font-size: 12px;
        }
        .gift-price {
            font-size: 10px;
            color: #a78bfa;
        }
        .gift-send-button {
            background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
            color: white;
            border: none;
            border-radius: 30px;
            padding: 12px 0;
            font-weight: bold;
            margin-top: 20px;
            width: 100%;
        }
        .flying-gift {
            position: absolute;
            z-index: 5;
            animation: flyGift 3s ease-out;
            opacity: 0;
        }
        @keyframes flyGift {
            0% { transform: translateY(100px); opacity: 0; }
            10% { transform: translateY(0); opacity: 1; }
            80% { transform: translateY(-100px); opacity: 1; }
            100% { transform: translateY(-200px); opacity: 0; }
        }
    </style>
</head>
<body>
    <div class="live-container">
        <!-- 视频区域 -->
        <div class="video-container">
            <img src="https://images.unsplash.com/photo-1614728894747-a83421e2b9c9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80" class="video-placeholder" alt="直播视频">
        </div>
        
        <!-- 直播界面覆盖层 -->
        <div class="live-overlay">
            <!-- 顶部信息 -->
            <div class="live-header">
                <div class="streamer-info">
                    <div class="streamer-avatar">
                        <img src="https://images.unsplash.com/photo-1531746020798-e6953c6e8e04?ixlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80" alt="主播头像" class="w-full h-full object-cover">
                    </div>
                    <div class="streamer-details">
                        <div class="streamer-name">星际探索者</div>
                        <div class="viewers-count">
                            <span class="live-badge">LIVE</span>
                            <i class="fas fa-eye mr-1"></i> 1.2k
                        </div>
                    </div>
                </div>
                
                <div class="action-buttons">
                    <button class="action-button">
                        <i class="fas fa-share-alt"></i>
                    </button>
                    <button class="action-button">
                        <i class="fas fa-ellipsis-h"></i>
                    </button>
                </div>
            </div>
            
            <!-- 底部评论和输入区 -->
            <div class="live-footer">
                <div class="comments-container">
                    <div class="comment">
                        <span class="comment-user">宇宙漫游者:</span> 这个直播太精彩了！
                    </div>
                    <div class="comment">
                        <span class="comment-user">数据分析师:</span> 能详细讲解一下这个技术吗？
                    </div>
                    <div class="comment">
                        <span class="comment-user">创意设计师:</span> 送出了 <i class="fas fa-gem text-blue-400"></i> 虚拟钻石
                    </div>
                    <div class="comment">
                        <span class="comment-user">科技爱好者:</span> 这个AI数字人的表现太自然了
                    </div>
                </div>
                
                <div class="input-container">
                    <input type="text" class="input-field" placeholder="发送评论...">
                    <div class="input-actions">
                        <button class="input-action gift-button" id="gift-button">
                            <i class="fas fa-gift"></i>
                        </button>
                        <button class="input-action">
                            <i class="fas fa-paper-plane"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 侧边互动按钮 -->
        <div class="side-buttons">
            <div class="side-button">
                <i class="fas fa-heart"></i>
                <div class="like-count">8.2k</div>
            </div>
            <div class="side-button">
                <i class="fas fa-comment-dots"></i>
                <div class="like-count">1.4k</div>
            </div>
            <div class="side-button">
                <i class="fas fa-bookmark"></i>
                <div class="like-count">收藏</div>
            </div>
            <div class="side-button">
                <i class="fas fa-share"></i>
                <div class="like-count">分享</div>
            </div>
        </div>
        
        <!-- 礼物面板 -->
        <div class="gift-panel" id="gift-panel">
            <div class="gift-panel-header">
                <div class="gift-panel-title">赠送礼物</div>
                <button id="close-gift-panel">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            
            <div class="gift-grid">
                <div class="gift-item">
                    <div class="gift-icon" style="color: #f59e0b;">
                        <i class="fas fa-crown"></i>
                    </div>
                    <div class="gift-name">皇冠</div>
                    <div class="gift-price">1000 币</div>
                </div>
                
                <div class="gift-item">
                    <div class="gift-icon" style="color: #ef4444;">
                        <i class="fas fa-heart"></i>
                    </div>
                    <div class="gift-name">爱心</div>
                    <div class="gift-price">50 币</div>
                </div>
                
                <div class="gift-item">
                    <div class="gift-icon" style="color: #3b82f6;">
                        <i class="fas fa-rocket"></i>
                    </div>
                    <div class="gift-name">火箭</div>
                    <div class="gift-price">500 币</div>
                </div>
                
                <div class="gift-item">
                    <div class="gift-icon" style="color: #a78bfa;">
                        <i class="fas fa-gem"></i>
                    </div>
                    <div class="gift-name">钻石</div>
                    <div class="gift-price">200 币</div>
                </div>
                
                <div class="gift-item">
                    <div class="gift-icon" style="color: #fcd34d;">
                        <i class="fas fa-star"></i>
                    </div>
                    <div class="gift-name">星星</div>
                    <div class="gift-price">100 币</div>
                </div>
                
                <div class="gift-item">
                    <div class="gift-icon" style="color: #f472b6;">
                        <i class="fas fa-gift"></i>
                    </div>
                    <div class="gift-name">礼物盒</div>
                    <div class="gift-price">150 币</div>
                </div>
                
                <div class="gift-item">
                    <div class="gift-icon" style="color: #10b981;">
                        <i class="fas fa-tshirt"></i>
                    </div>
                    <div class="gift-name">虚拟服装</div>
                    <div class="gift-price">300 币</div>
                </div>
                
                <div class="gift-item">
                    <div class="gift-icon" style="color: #ec4899;">
                        <i class="fas fa-rose"></i>
                    </div>
                    <div class="gift-name">玫瑰</div>
                    <div class="gift-price">80 币</div>
                </div>
            </div>
            
            <button class="gift-send-button">发送礼物</button>
        </div>
    </div>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            const giftButton = document.getElementById('gift-button');
            const giftPanel = document.getElementById('gift-panel');
            const closeGiftPanel = document.getElementById('close-gift-panel');
            
            // 打开礼物面板
            giftButton.addEventListener('click', function() {
                giftPanel.classList.add('active');
            });
            
            // 关闭礼物面板
            closeGiftPanel.addEventListener('click', function() {
                giftPanel.classList.remove('active');
            });
            
            // 模拟发送礼物动画
            const sendGiftButton = document.querySelector('.gift-send-button');
            sendGiftButton.addEventListener('click', function() {
                // 创建飞行礼物元素
                const flyingGift = document.createElement('div');
                flyingGift.className = 'flying-gift';
                flyingGift.innerHTML = '<i class="fas fa-gem text-blue-400" style="font-size: 40px;"></i>';
                
                // 设置初始位置
                flyingGift.style.left = Math.random() * 80 + 10 + '%';
                flyingGift.style.bottom = '100px';
                
                // 添加到DOM
                document.querySelector('.live-container').appendChild(flyingGift);
                
                // 动画结束后移除元素
                setTimeout(() => {
                    flyingGift.remove();
                }, 3000);
                
                // 关闭礼物面板
                giftPanel.classList.remove('active');
                
                // 添加评论
                const commentsContainer = document.querySelector('.comments-container');
                const newComment = document.createElement('div');
                newComment.className = 'comment';
                newComment.innerHTML = '<span class="comment-user">我:</span> 送出了 <i class="fas fa-gem text-blue-400"></i> 钻石';
                commentsContainer.appendChild(newComment);
                commentsContainer.scrollTop = commentsContainer.scrollHeight;
            });
        });
    </script>
</body>
</html>